//
//  main.m
//  OC02_work
//
//  Created by 侯平章 on 16/2/21.
//  Copyright © 2016年 侯平章. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Zombie.h"
#import "ConeheadZombie.h"
int main(int argc, const char * argv[]) {
    
    Zombie *zom1 = [[Zombie alloc] init];
    [zom1 setTotal:100];
    [zom1 setEvery:10];
    [zom1 sayHi];
    
    [zom1 initWithTotal:100 every:10];
    [zom1 sayHi];
    
    //创建路障僵尸
    ConeheadZombie *con1 = [[ConeheadZombie alloc] initWithWeakness:@"11" prop:@"22" total:200 every:20];
    [con1 sayHi];
//    [con1 setTotal:200];
//    [con1 setEvery:20];
    
    return 0;
}
